package com.icode.web.socket.tomcat7;

import org.apache.catalina.websocket.StreamInbound;
import org.apache.catalina.websocket.WebSocketServlet;

import javax.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA.
 * User: ZhongGang
 * Date: 14-7-27
 * Time: 下午9:39
 */
public class ChatServlet extends WebSocketServlet {

    @Override
    protected StreamInbound createWebSocketInbound(String subProtocol, HttpServletRequest request) {
        return new ChatMessageInbound();
    }
}
